import request from '@/utils/request'



// 1. 查询租户配置列表 (GET /web/tenant/list)
export function listTenantConfig(params) {
  return request({
    url: '/basic/web/tenant/list',
    method: 'get',
    params: params
  })
}

// 2. 获取租户配置详细信息 (GET /web/tenant/{id})
export function getTenantConfig(id) {
  return request({
    url: `/basic/web/tenant/${id}`,
    method: 'get'
  })
}

// 3. 新增租户配置 (POST /web/tenant/)
export function addTenantConfig(data) {
  return request({
    url: '/basic/web/tenant/',
    method: 'post',
    data: data
  })
}

// 4. 修改租户配置 (PUT /web/tenant/)
export function updateTenantConfig(data) {
  return request({
    url: '/basic/web/tenant/',
    method: 'put',
    data: data
  })
}

// 5. 删除租户配置 (DELETE /web/tenant/{ids})
export function deleteTenantConfig(ids) {
  return request({
    url: `/basic/web/tenant/${ids}`,
    method: 'delete'
  })
}